import 'package:flutter/material.dart';

/// 屏幕尺寸
class ScreenSize {
  // 屏幕宽度
  static double screenWidth(BuildContext context) {
    return MediaQuery.of(context).size.width;
  }

  // 屏幕高度
  static double screenHeight(BuildContext context) {
    return MediaQuery.of(context).size.height;
  }

  static Widget width(double w) {
    return SizedBox(
      width: w,
    );
  }

  static Widget height(double w) {
    return SizedBox(
      height: w,
    );
  }
}
